<div class="content" ng-controller="registerCtrl">
    <header class="bar bar-nav">
        <a class="button button-link button-nav pull-left back in external" href="<?=base_url()?>auth/login">
            <span class="icon icon-left"></span>
            返回
        </a>
        <h1 class="title">注册</h1>
    </header>

    <div>
        <img src="<?php echo base_url() .'public/' ?>images/banner-x.png" style="width:100%;" />
    </div>
    <div class="list-block" style="margin-top:3px;">
        <ul>
            <!-- Text inputs -->
            <li>
                <div class="item-content">
                    <div class="item-media">
                        <i class="icon icon-form-name"></i>
                    </div>
                    <div class="item-inner">
                        <div class="item-input">
                            <input type="text" placeholder="姓名" ng-model="vm.username"/>
                        </div>
                    </div>
                </div>
            </li>
            <li>
                <div class="item-content">
                    <div class="item-media">
                        <i class="icon icon-form-mobile"></i>
                    </div>
                    <div class="item-inner">
                        <div class="item-input">
                            <input type="number" pattern="\d*" placeholder="手机" oninput="value=value.replace(/[^\d]/g,'')" minlength="11" maxlength="11" ng-model="vm.phone"/>
                        </div>
                    </div>
                </div>
            </li>
            <li>
                <div class="item-content">
                    <div class="item-media">
                        <i class="icon icon-form-name"></i>
                    </div>
                    <div class="item-inner">
                        <div class="item-input">
                            <input type="text" placeholder="学号" ng-model="vm.student_id" />
                        </div>
                    </div>
                </div>
            </li>
            <li>
                <div class="item-content">
                    <div class="item-media">
                        <i class="icon icon-form-name"></i>
                    </div>
                    <div class="item-inner">
                        <div class="item-input">
                            <input type="text" placeholder="导师姓名" ng-model="vm.tutor" />
                        </div>
                    </div>
                </div>
            </li>

            <li>
                <div class="item-content">
                    <div class="item-media">
                        <i class="icon icon-form-name"></i>
                    </div>
                    <div class="item-inner">
                        <div class="item-input">
                            <select class="sel" ng-model="vm.group_id" ng-options="item.id as item.name for item in machine_group_list" style="height:30px;width:150px;"></select>
                        </div>
                    </div>
                </div>
            </li>

            <li>
                <div class="item-content">
                    <div class="item-media">
                        <i class="icon icon-form-password"></i>
                    </div>
                    <div class="item-inner">
                        <div class="item-input">
                            <input type="password" placeholder="密码" class="" ng-model="vm.pass"/>
                        </div>
                    </div>
                </div>
            </li>
            <li>
                <div class="item-content">
                    <div class="item-media">
                        <i class="icon icon-form-password"></i>
                    </div>
                    <div class="item-inner">
                        <div class="item-input">
                            <input type="password" placeholder="确认密码" class="" ng-model="vm.repass"/>
                        </div>
                    </div>
                </div>
            </li>
        </ul>
    </div>
    <div class="content-block">
        <div class="row">
            <div class="col-100">
                <a href="javascript:void(0);" ng-click="submit();" class="button button-big button-fill button-danger">立即加入</a>
            </div>
        </div>
    </div>
</div>

<script src="<?=base_url()?>public/app/auth/registerCtrl.js?v=13"></script>